added sql queries 2-4