Bugfix: FlushError. Conflicts between persistent ant transcient SQLAlchemy objects.