C | Lua | Sqlite
Simplify code of handle date data