Fix request.db getter lambda