Make getDatabases return a copy, add in method addDatabase for adding