fix DB_NOTFOUND issue for advance