Bugfix to ensure that updating a weight updates (or creates) the exact weight entry for that date, rather than the most recent weight entry.