update DB queries to use queryDB()