GitHub repository: petewarden/postgis2gmap
Description: A small collection of PL/PGSQL functions for converting to and from Google's map tile coordinates