fix to make db variables work and pass in