migrated dbs queries to dbs3