Limit the length of the values logged into the database. Refs #73