Fix gpactivatestandby after CaQL removal.
Fix gpactivatestandby after CaQL removal.

In commit 8df78e67f4de4bda603f021f573e81745102902b, there were some
CaQL removal. The scan that replaced the CaQL call was using the wrong
dbid.

Author: Jimmy Yih
Reported by @volkovandr in https://github.com/greenplum-db/gpdb/issues/1202

adam8157/gpdb,ashwinstar/gpdb,edespino/gpdb,50wu/gpdb,lisakowen/gpdb,jmcatamney/gpdb,lisakowen/gpdb,jmcatamney/gpdb,xinzweb/gpdb,xinzweb/gpdb,janebeckman/gpdb,janebeckman/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,Chibin/gpdb,50wu/gpdb,janebeckman/gpdb,lintzc/gpdb,lintzc/gpdb,Quikling/gpdb,cjcjameson/gpdb,lintzc/gpdb,Chibin/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,edespino/gpdb,xinzweb/gpdb,rvs/gpdb,rvs/gpdb,Quikling/gpdb,yuanzhao/gpdb,rvs/gpdb,50wu/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,lisakowen/gpdb,50wu/gpdb,yuanzhao/gpdb,adam8157/gpdb,cjcjameson/gpdb,edespino/gpdb,janebeckman/gpdb,yuanzhao/gpdb,Quikling/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,lisakowen/gpdb,yuanzhao/gpdb,adam8157/gpdb,rvs/gpdb,rvs/gpdb,Quikling/gpdb,ashwinstar/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,Quikling/gpdb,Chibin/gpdb,50wu/gpdb,edespino/gpdb,adam8157/gpdb,janebeckman/gpdb,cjcjameson/gpdb,lisakowen/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,Quikling/gpdb,cjcjameson/gpdb,janebeckman/gpdb,Chibin/gpdb,greenplum-db/gpdb,edespino/gpdb,janebeckman/gpdb,janebeckman/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,Quikling/gpdb,greenplum-db/gpdb,edespino/gpdb,kaknikhil/gpdb,adam8157/gpdb,edespino/gpdb,xinzweb/gpdb,Chibin/gpdb,kaknikhil/gpdb,rvs/gpdb,xinzweb/gpdb,xinzweb/gpdb,cjcjameson/gpdb,lisakowen/gpdb,yuanzhao/gpdb,edespino/gpdb,Chibin/gpdb,ashwinstar/gpdb,lintzc/gpdb,Quikling/gpdb,lintzc/gpdb,ashwinstar/gpdb,Chibin/gpdb,edespino/gpdb,lintzc/gpdb,cjcjameson/gpdb,xinzweb/gpdb,greenplum-db/gpdb,50wu/gpdb,Quikling/gpdb,greenplum-db/gpdb,adam8157/gpdb,kaknikhil/gpdb,janebeckman/gpdb,lintzc/gpdb,edespino/gpdb,lintzc/gpdb,rvs/gpdb,yuanzhao/gpdb,50wu/gpdb,rvs/gpdb,lisakowen/gpdb,kaknikhil/gpdb,adam8157/gpdb,adam8157/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,Chibin/gpdb,lisakowen/gpdb,rvs/gpdb,Chibin/gpdb,kaknikhil/gpdb,rvs/gpdb,yuanzhao/gpdb,Quikling/gpdb,janebeckman/gpdb,cjcjameson/gpdb,xinzweb/gpdb,kaknikhil/gpdb,Chibin/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,lintzc/gpdb,kaknikhil/gpdb,50wu/gpdb,jmcatamney/gpdb