Use unix timestamp for database timestamp for client compatibility
Fixed wrong serialisation of as_objects