make index fields smaller

since I would like to make this stuff compatible with utf-8 based
database, we need to make sure that the fields are smaller
Merge pull request #107 from metridoc/make-entities-utf8-compatible

make index fields smaller