Hi,
Is there a way to have separate database for each realm?
Yes, just run instances of keycloak with just a single realm.