Update adapter.php

Modified insertIfNotExist() to support NULL values
add unit test
Also update sqliteadapter
Merge pull request #7323 from owncloud/Jonny007-MKD-master

Update adapter.php