MySQL script optimization.
Merge pull request #1 from p1us2er0/mysql-script-optimization

MySQL script optimization.