fixed segfault with access to already closed db connection + deprecated linkUpdated-event