Updated database script.