I wrote for my wife program in Microsoft Access, where she recorded her glucose data, instead of pen and paper diary. It was creating charts, finding trends, and so on. Then she went to diabetic educator who was explaining about carbohydrates counting. That give me idea of adding foods database...