more commits about database connection and mainwindow rule pane