factored DB config into seperate file