Fix ORM setup portability

Mysql tables setup had [require sized indexes](http://stackoverflow.com/questions/1827063/mysql-error-key-specification-without-a-key-length) on `TEXT` fields. 
All indexed `TEXT` fields replaced with `VARCHAR`