Fixed a bug with the build sql section of MvcDatabase.php