moved limits to couchdb class