changes to sql append store