build out couch db and spatial helper classes