read contents from a txt file,write into mysql