fix vertex retrieval from amber bug. Made dumbass sql guard very slightly less dumbass