avoid NPE
rename getBrokerPool on getDatabase