Add database init and add msg into database into main

Add database init and add msg into the database into main.py.

The current issue about the thread is: when thread number > 1, not all messages can be solved. Maybe a queue is necessary to hold msg that cannot be handled in time.

Merge request reports

Loading