added levels and xp to badge table and write to it when badges are created