more fixes for Darkshore: core scripts and db