Started modularising REST routes and DAO.