factoring out postgres config variables