Ensure nullable=False on appropriate model attributes
Add DB API for CRUD operations on repositories

Adds DB API operations on repositories, including checks for
existence and duplication of parent relations.
Merge pull request #49 from jaypipes/repositories

Adds DB API for repositories