Fixed crashing database from insertWeekday.