         v.hidden = false
         messageBoard.hidden = false
         messageBoard.addView(v, inGravity: NSStackViewGravity.Center)
-
-        // TODO: use DB module to add new message.
+        dbManager.add([str])
     }
 
     @IBOutlet weak var removeAllMessages: NSButton!


class ViewController: NSViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    @IBOutlet weak var messageBoard: NSStackView!


        // TODO: use DB module to remove messages.
    }
}

class MyView: NSView {
