added function to create insert query and updated readme