Create DB connection instead of using memory only
Open to discuss:
- keep current memory implementation or remove it?
I would also implement the database connection in a way, that each kms uses its identifier or hostname as the database identifier, so that for local development and testing all kms can use the same database instance.