-- refactoring based on the code in: http://stackoverflow.com/questions/18699776/passing-in-dynamic-number-of-variables-to-datomic-api-functions/18722982