made changes to mysql script