java code to access data through telnet and upload to MySql database