Fix revision table insert to use datetime type

This will now not use a string for the timestamp (datetime), and instead use a datetime. This means that projects that do utc/timezone related conversions for the datetime type will be respected.