Tasks are already stored in a database. It would be better to create a dedicated database for this, make that part of 'automatic' initialization (should be possible). This would also allow adding some indexes on tasks to make listing, paging, and selecting from them quicker.