Fixed lost of data when adding column, fixed allowing to not fill table name

Table dialog couldnt been confirmed without filled table name. Fixed lost
of data when new column is added at the end of table dialog columns.