factor out charmbits/simplerelation; add elasticsearchrelation