fixed db stuff, changed color of the badge