fix insertIfNotExist return value, update doc and corresponding test
update comment
Merge pull request #3954 from owncloud/update_insertifnotexist_and_test

fix insertIfNotExist return value, update doc and corresponding test