patch to zstorm to enable foreign keys and wal