Updated database to work with stats