minor sql chages