fixed two error when i use todo example.

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