small sql updates