adding a function and some elements

adding some buttons
adding a window for get new table's data
adding a function to set a query for  create tables