reorganized the dbs