- handle timestamp conversion better when invalid values are given
- fixed db:update() corrupting timestamp values