Fixed bug with Time_Spent data handling.

Read before Write query was missing the second key.