add checkpoints do db