sql building: Add ProfessionTrainer and ClassTrainer npcsflags if the npc is a trainer

The server does not send these flags if the player has a different class or doesn't have the profession
so we kinda need this hack to have correct npcsflags in DB