setMock for db/network