initial work creating a rethinkdb esm