add tableName param to writeDataTable & check for overwriting tables.