Allow sqlite to be used with journal mode WAL

refs https://github.com/owncloud/core/issues/10279
Might want to link to an explanation for the different options.