Update for patient export: use selected measure, clean up db on reset, and add settings button to patients header