Extract out database configuration