About the Glider Waypoint Server Script
You can have a look at it here.
mysql database on the Web-server. This database contains both waypoints, predefined waypoint lists, together with format specifications for file formats. The waypoint table is designed according to an the IGC format for waypoint data [pdf] (For some reason this document is no longer available at IGC's home pages, hower a copy is provided here).
You can see the entire database specification here.