add reduce to checkpoints view
add test for function that gets the last schema