Changed db variables to user environmental variables