Fixing bug in SQL schema for MySQL.