gets & sets config values from a mysql db