added some queries to the db