Move db config out of scripts