changes to database insert script