Correctly nest database configuraiton