pithos: Various fixes

Change SQLAlchemy statement to generate SQL code that uses || concatenation operator instead of the 'concat' function
(inexistent in earlier PostgreSQL versions than 9.1)
fixed after rebase