Update model.class.php

Fixing the getTableMethod to work the configuration, if set