Added a method to ensure that the declared tables in the models really exist.