Implement SQLite datetime fix (Fixes #34)

This is a fix for the SQLite datetime issue in #34.

Perhaps this code should be in a separate file for SQLite specific fixes though, that is if we should consider fixing this in dataset at all (As SQLite doesn't have a datetime type).