put restify response within mongoose callback