fixed loading initial database