adding sql queries