Added SQL queries