use of a singleton for dataBase and managers