move db and cache's config params to config file