get badge detail data by sqlite