fixed two error when i use todo example.

fixed two error when i use todo example.
==============================
- the mysql datetime format error wher use time.Now() result directly.
- the id int type error , I fixed but don't kown the reason under the hood.