Fixed Date representation bug

Now dates are stored as Strings. (SQLite doesn't have separate type for
date, datetime, etc. So it is just easier to keep things this way).