update parser function coreOUTPUT

Replace 20 queries with 4... should make maintenance easier.  :)