Aka: Add length limit of command names in order to limit the number of database queries.

There were a lot of database queries (as much as words in the whole command) for non-aka commands.