changed and addad api controllers
altered errands table and implemented some api methods