Merge "Added missing duration field to database record insertion."