Fixed database update before squashfs installing