I get the message 'Update failed' when trying to add or edit data