If you want to recreate this feature yourself with different databases youre going to have to map your entrypoint (initial URL) to your specific client and from there to the specific database datasource. Once you have the data source, associate it with the SessionFactory and everything will work correctly from there.