This is a really cool idea! I want to make something like this but modify it to dynamically name the table based on the API endpoint (here it would still be quotes), and check if the table exists first. This way it could all just be one function and handle multiple endpoints and tables