updated models, created routes and controllers