using TouchDB Version 1.0