Fixed issues with unique PID and error on empty time series. db has now over 4k lactate measurements