More changes from meeting

Completed changes to Equipment schema and also added DataQuality and
DerivationEquation tables for foreign keys.