Fix revision table creation

Somehow we were running without a revision table for a while now, with a
fall-back request to the PHP API for each revision request.

This patch fixes the breakage first, better tests in a follow-up.