MySQL syntax fixed

Signed-off-by: Oleg Bulatov <oleg@bulatov.me>
Merge pull request #2 from dmage/master

TO_UNIXTIME does not exist