Replace TIMEDIFF with TIMESTAMPDIFF for mysql.

Proposed fix for #11