1) Open your world database (double click)
2) Click right mouse button on your world database and choose "execute SQL file"
3) Browse to the sql file you want to aplly
4) Click "run"
5) Done (you can spawn the npc with the command:
.npc add ENTRY