Fix #315. Make delete queries not use WAL