Fixes errors when converting column types

* Implement new function to convert timestamp to integer (epoch)
* Implement new function to convert text columns to timestamp relying on
  Postgres to do so.

Still missing a function to convert from integer (epoch) to timestamp