It's weird cause the insertIfNotExists() tests otherwise passes https://github.com/owncloud/core/blob/master/tests/lib/db.php#L87