Updated database scripts