created member-contract view, refactored to a generic get_data query