Added meta to fhirbase.sql; moved functions to fhir schema.