Fix dependency location for Battlegrounds. Refractored getDatabase to
correct for new implementation.