Fixed bugs related with adding fields to all tables instead one.
Refactored code. Added ability to get full collection object to store in json format.
Added events to track changes of fields.