Implemented delete functionality on item long-click of a task. The
selected item is deleted from the database and removed from the
ListView. Also added calls to close the database where appropriate.