Fixing sqlite groups