added migrations and model associations