use UNIX_TIMESTAMP() everywhere for WEB-8848 +review WEBCR-189