added monkeypatch for Storm 0.19 and foreign keys handling