improvements

- improvement in curl getData function
- added updateTable end error functions