Changes to the Infinium database queries to introduce date selection

Added an Infinium database query to find finished samples by date.

Modified the query which finds samples in a project, plus their data
files, to distinguish re-scans by their date and eliminate duplicate
records being handed to the analysis pipeline. (The pipeline rejects
them.)

Refactored the Infinium database queries to remove some duplication.