Generate settings before db