db: fix call_implies for the in-memory database