So, this week I embarked on the journey to get my asKML function working end-to-end. At this moment, I've implemented the well known binary to kml conversion, and I've also made a stub SQL file asKML which simply returns the same as asBinary, but I wanted to get them working together.