update

working to get the bugs out and the sql correct.