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
Moved next to initOrg since this method is only called by initOrg... I think the code can be read better this way.