Changed sqlite journal mode to WAL