Store dates as XXXX-00-00, allowing range queries

See #16.

This will require a database fix on upgrade.