updated mysql CREATE query to be compatible with MySQL 5.0 or newer