Updated database script to change datetime