Implements the storage protocol for friendui to store user data in a datomic database.