Fix for pgsql predb count.