PostgreSQL compatibility, fixes #2666

Backticks were missing and wrongly marked value.

@DeepDiver1975 @bartv2 @karlitschek @schiesbn or others, thanks.