Updated mysql script 

Updated script as given on #6