fix time sql serialization.
Merge pull request #73 from PatrickDropbox/sql-time

fix time sql serialization.