Added a unique key to the occurrence table and removed an unneeded column.
Added some helper methods and improved semantics of typical constructs.
Decoupled domain model class from the database by removing the id parameter (which bears no relevance to the domain model). Improved semantics and fixed minor bugs.
Added a mapper class that translates between rich domain model and dumb data bags for the db.
Implemented storage of errors in the database.