added routes and matched the variables with the migrations