more fixes for darkshore, script and db