update database references