Add retry to db-cookbook