avoid time diff computation on the SQL side to prevent "1690 BIGINT UNSIGNED value is out of range" error

fix gh-33
Merge pull request #39 from thomasleveil/fix/33

avoid time diff computation on the SQL side to prevent "1690 BIGINT UNSI...