more fixes for darkshore: core script and db