Added some database cleanup functionality, by user preferences.
Also added some display messages for empty contact, or message lists.