refactor — rest api
replicate command to couchApi, add code under test to new db