wip: implement write ahead log