Fixed some sql connector problems; data now correctly persist to DB when qtys are updated.