Added calculateDependencies to DatabaseAggregator.