Update model.class.php

Adding the ability to have auto generated columns and the ability to get the table name. Also the ability to use models when specifying joins