Debug upgrade db