added routes and the migration