looks like req isn't actually used and you should just pass value directly to the query