Setting the dbname for filtered replication in the right spot.

Instead of setting it when we enable query service, since we don't
enable query service when filtered replication is on.