moved db config to it's own file