Fix an SQL bug in the wake of adding shares