gadgets db stucture