now using posgres specific query builder