Fixed SQL patch for dev. Needs to be fixed for prod.