BITMAG-782 add database manager class, for handling general connection, creation and migration of databases