applies close to db query