Limit length of database fields to be used as index fields.
This causes problems when using MySQL (index length limitations).
Update models and unit tests accordingly.