add changed and changedby at the insert, update, lock and unlock
functions