Checkpoint

Started updating the advanced writer to use the new db format