UNIX_TIMESTAMP does not work for some databases (namely MSSQL)