Updated the sync method of the "naomi" class. Fixed many bugs at "connectors/mysql" create method.
Updated the example to use the updated Naomi API.