[Haskell] Dynamic database updated by list using existential types