change textwidget to tablewidget, and add mysql db connection