In PSQL 9.x the \ is no more used to escape single quotes, a second single quote is used instead

Signed-off-by: emanuele <emanuele45@gmail.com>
Forse transaction for UPDATE in PSQL, this should ensure consistency of indexes

Signed-off-by: emanuele <emanuele45@gmail.com>
Ensure the email cron doesn't fail too harshly if run as Elk scheduled task

Signed-off-by: emanuele <emanuele45@gmail.com>
And now PSQL gives a working build fir the first time, so it can be added back to the "mandatory" tests! :D

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #994 from emanuele45/db_fixes

Some more fixes to the PSQL layer