Append outputs of programs into SQL tables