[BUG #7246] use unique names for data DEFs when creating graphs
[BUG #7246] draw graphs even if DB update failed