Fix sqlalchemy many to many relationships

Fixes #14

* Removed unnecessary code
* Unittests based on http://stackoverflow.com/a/23388008
* All tests passing