change map key from name to db