Fix database migration method to populate name column