wild refactoring
work with the list
saving message history in sqlite