added database migrations for relationships