Changed sqlite mode to WAL