added some SQL queries