The mob database targets the sprite via the name.
1872,BEELZEBUB_FLY,Hell Fly,Hell Fly,127,502000,1,0,0,1,643,795,98,55,99,90,52,55,89,80,10,12,1,8,80,0x37B5,100,432,480,360,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1873,BEELZEBUB,Beelzebub,Beelzebub,147,6805000,1,0,0,1,3500,5600,288,265,155,235,200,225,204,66,10,12,0,6,88,0x37B5,100,100,576,480,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1874,BEELZEBUB_,Beelzebub,Beelzebub,147,4805000,1,7050000,7050000,2,4200,8150,418,265,178,236,200,250,218,66,10,12,2,6,88,0x37B5,100,212,504,432,3525000,607,5500,617,5000,617,5000,7754,9000,24
Try editing the database line for 1872 so instead of "BEELZEBUB_FLY", it says "BEELZEBUB_". Do the same for 1873 so instead of BEELZEBUB, it says "BEELZEBUB_".