Mid-level client library for accessing PostgreSQL from Haskell