Adds more support for deletion of database records

This provides 2 main sets of functionality, first it allows individual records to be deleted with a long click. Secondly, it allows all records in a category to be deleted. These features already existed, but the support that was added allow records to be deleted in 'show all messages', and summary views. It also adds support to allow all records in a category to be deleted from 'show all messages'.