improvements for mysql and curl usage

- better curl configuration use generator
- mysql command line client using several hosts