minor cleanup
added code to copy QPData into APF
adding all QP states to FMDB output