Fixed bug of app crash on exit

Every object that is not garbage collected by qml engine should have parent.
SqlQueryTableModel::addColumnFunction() had incorrect implementation, when
new column parent was set to NULL.