Implement BD storage for composer history
Now, the composer history is stored in history.pkl file. It should be moved to the database and assigned to the case_id.
Now, the composer history is stored in history.pkl file. It should be moved to the database and assigned to the case_id.