Updated database helper.