Fixed storing of timestamps.
Fixed record update bugs.