Saving datetime as unixtime in MySQL queries