A pharmacy system that uses a functional database (Datomic)