Test routingkey length and fix database string sizes