This library maps datatypes to a relational model, in a way similar to what ORM libraries do in OOP. See the tutorial https://www.schoolofhaskell.com/user/lykahb/groundhog for introduction
Why do you think that https://github.com/haskell-beam/beam is a good alternative to groundhog