SQLite functionality for the task list (using CursorAdapter)