Commit SQLAlchemy session after creating a model