more fixes for ashenvale, core script and db