core: psql: better error message for insert/delete
(cherry picked from commit b76e04a294ce172880a057414dc4fbc282ddc1e1)
(cherry picked from commit a57017e6c2fc25a7eb45fffae92fb58e1fabf41a)
Replace lager with error_logger.