Moved the setting of Created and Updated to PreInsert and PreUpdate callbacks.
Adds a job using a transaction, and defers the closing of the db connection.