Please forgive me if I misuse some terms here; JavaScript is outside of my regular work domain.
I have a Flask app where the route generates the proper database query