add comments, fix delete_cache and fix delete_database dropping all open connection to the selected database