Make use of various System tables to validate the schema of a table,
added some TODOs to finish it off. Needs localised messages