Switched from sqlite to postgres.
Using postgres TIMESTAMP and GEOMETRY types.