Implemented all queries

Implemented all queries. Something needs to be done for reservations.