fixing table name to lower case and correcting version of mysql

A little fix on mysql script, it was giving me an error on mysql 5.5.31