first fixes for Ashenvale, core script and db