Bring back the task editing functionality and rollback the
task table in the database to record categoryId rather than
category title, and changed the code correspondingly.