fix quest 25527 and 25518, core script and db