Added __nonzero__ magic method so you can do 'if table_instance'. Also changed representation of selects.