DB basic structure created for the badges logic