created php/mysql queries in order to retrieve data from the database