Update for DB queries