refactor server_databases : function to deal with drop multiple databases