Fix insert update

An object passed to `insertObject` and `updateObject` can only contain public properties that exist as columns in the database table they are being inserted into, due to the way the update / insert query is built.

This PR fixes that by comparing the object properties against the table columns and only builds the insert / update query using those properties that exist as columns in the table.