set up index routes and generated models and migrations