added sql queries 4-6