key_commit: Added some protection for data type conversion to the dailydata collections tablefunction