Debugging the order of initializing dbs and reading parameters