move setupPushAndPull(server, dba, dbb, cb) in common.js