Updated database connection