using unix epoch for all datetime values in SQL queries