add some sql queries to databaseaccess classes