There were few number formatting problem and detection of innoDB table format. Charles Dee Rice solved the problems that I missed out. Thank you! Also duplicate msg was fixed.