Hello Paul,
The calendar plugin is a client side UI element written in JavaScript
which runs in the browser and therefore cannot interact directly with
your database. Databases are server side, so you need to pick a server
side language of your choice (e.g., Java, PHP, ASP .NET, Ruby, etc) to
perform the SQL query to select the agenda items from your database. I
would recommend converting the results from the database query to JSON
and writing that back to the client (the browser.) On the client side
you can use jQuery to perform an AJAX call to your server side
component to retrieve the JSON calendar event data, then it's simply a
matter of looping through the events and calling the frontier calendar
addAgendaItem function to add the events to the calendar.
jQuery AJAX call
http://api.jquery.com/jQuery.ajax/
JSON
http://www.json.org/
You mentioned that you are currently storing your data in a Google
calendar? With Google calendar you should be able to export data in
iCal format. If you log into Google calendar and go to the settings
for your calendar you should see a green button link that says "ICAL".
Clicking that link will give you a URL to an iCal file that contains
all the events for that calendar. You can use the frontier calendar
loadICalSource functions to load that URL (which loads all the events
from the ical file into the calendar.)
Seth