Fix setup when no database, ensure only one dbs process running