finalized code upto until insert, select queries + log3.txt added