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
I think is better "error & exit".

BTW, probably NAMING_PREFIX_MAX_LEN is a more proper name for the constant.