Fix insane arguments passed to database::doAsync.