Clean up manage commands and database searches.