adding queries for sql