Bugfix initializing dbs