added code for insert/delete/update queries but they are not tested yet