Modified MainWindow and DatabaseConnection.

DatabaseConnection now adds notes as Note objects to the linked list.