fix bugs with SQLAlchemyFoundry, add stashing file