Fixed data storage for Machine Profiles & Contacts

Need to fix the bug with storing events