minor update sql fix