Updated database work