Use prepared statements for security
Fix syntax

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

Use prepared statements for security