integrated py file for inserting data to db