fixed the multiple dbs