Refactored controller to use service.

Started moving updating and fetching responsibilities to service and dao.