added database changes action on upgrading, more bugfixes on quip's hook