server  minor SQL  changes