use global $tableName as default in member functions

All member functions of the class AbstractModel which have the $tableName as a parameter, should allow an empty value. The global member $tableName should be used if the table name has not been set in the function parameter.