Change fetchCheckpoint to getCheckpoint
Change catch( to then(null,
Unwrap db.get