Move timeout and cache db url settings to environment