SQL upgrade for service planning