#403 Moved setting params for db and memcache to separate methods