Add sql corresponding to changeset 3