added relationships and migrated db
wrote tests for relationship