Insert the correct time property into the database