Changed md action to return Spot class object rather than Spot.__table__ table object.

The unaltered example was giving the following error:
AttributeError: 'Table' object has no attribute '__name__'
If I assign a __name__ (just for debugging purposes), I get this error:
sqlalchemy.exc.ArgumentError: Class object expected, got 'Table('spot', MetaData(bind=Engine(postgresql://my_connection_here, Column('id', Integer(), table=<spot>, prima ... (truncated)