Updated database and stats are created properly