Implemented the high level calculation routines
Changed an id field to INTEGER since its being set via an FK
Merge pull request #9 from metabrainz/highlevel

Implemented the high level calculation routines