fixed saving updated contacts
made update_contacts much faster