Update Database and Queries

Fixed problems with queries not working