change method for retrieving all existing databases