Pass the fedmsg config to the pkgdb query function.
Provide option to use pkgdb1 or pkgdb2 API.