Updated code to fetch contact in crm.rb