Get inbox messages and store them in Datomic