Edit entity ids right in the DB

Hi, my home assistant has grown over time: I now have 838 entities and the naming pattern changed (even the language, sometimes it’s DE, sometimes it’s EN).

I want to do a quick cleanup. The UI is a bit bulky. So is it possible to change the entity ids right on the DB or is there more logic attached to it?

Thanks, Tim