deployer: Fix deployment event SQL

Signed-off-by: Lewis Marshall <lewis@lmars.net>