finish models, migrations and routes