Made orm query builder adapter stateless