Deprecate datetime field type in database
Created by: ikedas
This PR deprecates datetime field type in database. Because:
- There are no portable way to compare, increase or decrease such field values.
- It's slow: Values should be converted to Unix timestamp; Index cannot be applied.
Database will be upgraded automatically during upgrading process.