another db fix

did forget datetime2epoch, and pg is the only backend to care about it.

Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>