Updated comment about the execution order of MySQL scripts.
Modified .sql scripts to use variables and dynamic SQL.
Merge pull request #6 from ForoFyL/db-maintenance-2