Globalize db here not amp_conf