Updates fields when an entry is selected, provided that the item exists in the database.