This checks my database to check my master tables are there

It checks the version is ok, then checks the tables exist so I know if
anyone has dropped the tables etc