change database config file

change to the online database
add function editAnimal and function updateAnimal