Updated database entry script