Fix postgres

Clean up postgres collector with some bug fixes we ran into.

* Removes fields that may not exist on older postgres installs (8.4+ compatible)
* Avoids publishing empty / 0 values to save on space
* Supports passing parameters safely to database queries