Config databse to use evnvironment variables rather than hard coded values