Handle timestamp objects being passed to the db helper