Updates to add the cr_mode field to the database. For Issue #76.