get_data function

Extract data from an m-Path Sense database