patching before_models_committed event mitsuhiko/flask-sqlalchemy#150