allow getDatabase to load environment config