Remove deprecated trial_db related code from CC.

These changes do not include the necessary schema migration as that
needs to happen after the CC's are updated with these changes.