Support upgrade db