refactoring of XMLDataBase class
refactoring of DatabaseManager