fix database open error