Added UPDATE functionality to routes