Reload settings before database
Use midnight dates for diffDays