updated references in database