Add table function (sqlite and MyTreeWidget)