apps = db.display_query(s, output=False)
            if apps == []:
                puts(
                    colored.red("{} does not exist in database.".format(
                        a9["search"])))
            else:
                apps = dict(apps)
                for i in apps.keys():
                    q4[0]["choices"].append({"name": i})
                a4 = prompt(q4, style=style)

        if a4["install"] == []:
            puts(colored.red("You have to select at least one app."))
        elif a3["option"] == "remove wishlisted apps":
            for i in a4["install"]:
                db.remove_wishlist(a1["userid"], apps[i])
                puts(
                    colored.green(
                        "{} removed from wishlist successfully.".format(i)))
        else:
            for i in a4["install"]:
                s = db.wishlist(a1["userid"], apps[i])
                if not s:
                    puts(
                        colored.red(
                            "App can't be added to wishlist because app is already downloaded/wishlisted."
                        ))
                else:
                    puts(
                        colored.green(
                            "{} added to wishlist successfully.".format(i)))