Added temp sql queries