Added a recognition database maintainance interface to the settings page. Code cleanup.