Check the content and the length of certain input data and MySQL database and table names

Fixes issue https://github.com/telefonicaid/fiware-connectors/issues/114
Is it necessary to do something similar with CKAN?

By the way, it is not `if (dbName.length() > ...` but `if (tableName.length() > ...` (auto-review :))