Removed foreign key reference to ports (which is now a view).
Re-instated trigger to create secondary tide events stored in a table,
rather than calculated as a view (which was rather slow).

Added trigger to remove secondary tide events when a trip is removed.
Whitespace.