added new sql queries