sample script for wp db queries outside the loop