extend ToDatomic for Datom to support querying over datoms

support the use of a collection of datoms as a database/datasource