Updated database details if statement