make it work with version >= 1.3

the format of the user document changed in couchdb 1.3, reflect this