Generate shorter index names so as not to fail on PostgreSQL or MySQL (or others?) with long table names

I don't see any tests for the generators (I could be blind), so... hope this works!

Should fix #48