database with the edit function when clicking on an entry