Improve date attribute handling.
Refactor tests to mock database.
Bump version to 0.11.0