fixed db connection issue pulling wrong config vars