if the value isn't a number CouchDB will throw an error, so we should too