Fix for PROV-477

Use shorter indexes to get around MySQLs hardcoded max key length
restriction in 5.6.
Merge pull request #36 from collectiveaccess/PROV-477

Fix for PROV-477