TODO: fix empty cursor when retrieving contact details