Added parenttable, parentcolumn and devicekey to local data tables and
save functions for customer and contact (inserts and updates)