setPostStatus query improvements