update database reference