Fix database upgrade from 4.4.0 to 4.5.0