Fix broken SQL revision numbers