Now using config for DB parameters instead of hard-coding them