Updated feature for storing discussion log in database