move db and memcached info to config