Some guidance on how to approach obtaining replicating this in bubble

Greetings,

I want to be able to somehow connect to my kindle library and get a list of all books within. I had wondered if kindle had an API to connect to and a google search showed I wasn’t the only one wondering this - alas they do not but I came across this post on Stackoverflow whereby one clever individual had put together a script which does the very thing I am seeking to do.

I’m somewhat familiar with javascript so not afraid to attempt to merge some JS with bubble but its the SQL part that has me confused and unsure of how to begin trying to do this.

If anyone can fire some pointers my way that’d be great!

Thanks.