fixed startup db bug