updated index creation to use the MySQL gem and be a straight ruby block.