fix issue with db.table.insert query type set to insert