added 3 sql queries