Addons db changes were not logged properly

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #1640 from emanuele45/last_error

Addons db changes were not logged properly