Switch to a newer Hasql API
fix broken test suite