Add legacy support for gist

Needed to get synchdb to work for kartoza/afis-viewer