Updated mysql script 

Updated script as given on #6
Merge remote-tracking branch 'origin/v2.1'