switch to write ahead logging