9/8/2013 - Changes for version 5

- To deal only current determinations being present in the SampleBiotope table and lack of referential integrity between the SampleBiotope and SampleBiotopeHistory tables it was agreed that the SampleBiotope should hold all the occurrences (both preferred and non-preferred and the SampleBiotopeHistory hold the redetermination history. To this end the following changes were made: 

1)Preferred and Biotope_List_Item_Key fields added to SampleBiotope table
 
2)Biotope_List_Item_Key added to SampleBiotopeHistory table

3)SampleBiotope and SampleBiotopeHistory related on Biotope_Occurrence_Key (rather than using a combination of Sample_Reference and BiotopeCode) and making SampleBiotopeHistory is a child of SampleBiotope.

4) SampleBiotope table renamed to SampleBiotopeAll (to retain a query named SampleBiotope for the report wizard to use to ensure it did not break).

To get a SampleBiotope table equivalent to teh snapshot in v4 (i.e. a list of all the current preferred biotopes) you need to filter the SampleiotopeAll table for where preferred=true

- Referential integrity enforced between survey event and location
- AphiaID field added to SampleSpecies and SampleSpeciesHistory tables
- BIOTOPE_LIST_ITEM_KEY in SampleBiotope and SampleBiotopeHistory tables
- Image field in the sample table is now pulling the link information through to the snapshot.
- In SampleSpecies inconsistent calculations of NumePerSqM corrected 


5.0	08/02/2013	Allow for WORMS species dict changes
5.01	08/04/2013	Changes for SNH requirements wrt referential integrity and history tables
5.02	02/05/2013	Species density was miscalculating if not 1m quadrat
5.03	02/08/2013	Fixed so that ImageFile in Sample table is populated
5.04	05/08/2013	Fix so LatWGS84 and LongWGS84 are populated for last record
5.05	15/08/2013	Added in IsCurrent and Foreign fields to SampleSpecies
5.06	09/04/2014	Improved error message if MarineLUT.MDB is set wrong in the INI file
5.07	13/05/2014	Changing so exported dates come from survey event
5.08	26/09/2014	Fix for event surveyors being missed off last event sometimes
5.1	02/10/2014	Added in dead indicatore
5.11	03/12/2014	Fix for \par\par issue when stripping RTF
5.12	04/12/2014	Another RTF fix
5.13	10/03/2015	Fixed issue where dead flag sometimes didn't export
5.14	11/09/2015	Fixed issue with the way redetermined biotopes are added
5.15	25/08/2017	Fixed issue with 15.03 biotope label not appearing in snapshot
5.16	10/02/2020	Added in PreferredSpeciesName and PreferredAphiaId fields into the SampleSpecies table