did some work on that sql bug Ive been chasing