Added inserts for query 2. Working on query2