use unix timestamps, added constant for sql datetime format
do not use NOW()