change function edit_animal

update db and turn back to animal_info