I've done a fair bit of php / mysql scripting a few years ago and want to customize some solarwinds pages. I'm looking through the files in the Orion directory and don't seem to see examples of queries to the database. I'm just trying to start simple and create a simple "select nodes where status = down from db" type thing to get rolling, but that is even a problem. Can someone explain the basics of how to use existing solarwinds code in order to execute my own query in a customized page?