Fix syntax

Postgres docs = wrong
Syntax for id replacement
Merge pull request #5 from watchmanmonitoring/ppo

Ppo!