Added quit, quit EOF, and output to database file. Working on list command returning multiple messages. Need to send DONE message separately.