There is no table `measurements`? Shouldn't this be `sessions`?