function [selected_entries]=find_flagged_filenames_from_access(selection_clause)
%this file uses the database toolbox and sql syntax to return the names of all files from the database that match the given query

%conn=database('microperfusion_data_sourcename','','');   %microperfusion_data_sourcename
conn = database('patchlog_data_dwn', 'root', 'testpass', 'com.mysql.jdbc.Driver','jdbc:mysql://localhost:3306/patchlog_data_dwn');
setdbprefs('datareturnformat','cellarray');

curs=exec(conn,[selection_clause{1}]);
curs=fetch(curs);
selected_entries=curs.data;
    
%close(curs)
close(conn)