added check for files already in the db, display only epr files to be plotted