Pulling Data From an SQL Database in HTML 5
===

I am trying to develop a BlackBerry application that will show data from an SQL Database from a server. I was researching the new HTML 5 option for blackberry (WebWorks) and noticed that it apparently cannot connect to any server data by itself. Some links state that I would need javascript coding to obtain it. I looked into the option of PhoneGap (link here: http://phonegap.com/) and decided I'd try using HTML 5 to produce the application. I have never touched SQL databases before and I am wondering how I would connect the two; meaning how do you pull data from the server given that you are working with HTML5? 

I have looked at: 

http://stackoverflow.com/questions/8348082/where-is-data-stored-when-using-an-html-5-web-sql-database

http://stackoverflow.com/questions/3432339/process-for-pulling-data-from-a-sql-database

among others but I am still unsure as to what to do. I would be looking to "view" the data from the server and display it on the app. It would be something of the sort:

`- HomeScreen: What data would you like to view?:`  
`- Dropdown list of categories (from the database)`  
`- Selecting Entry in dropdown leads to available information (from the database)`

Any help would be appreciated, and of course thanks in advance.