yay more  javadocs!! oh and some work on sql