trying to figure out how to compose esqueleto queries