added migrations and class associations