Added the SQL queries to fetch the data from the db