added the ability to edit contacts and update the database