Added some SQL queries