Merge pull request #958 from emanuele45/pgsql_errors

Few errors in install and upgrade (pgsql)
Added .travis.yml

Signed-off-by: emanuele <emanuele45@gmail.com>
And if we use our db-layer?

Signed-off-by: emanuele <emanuele45@gmail.com>
Something different

Signed-off-by: emanuele <emanuele45@gmail.com>
build ALL

Signed-off-by: emanuele <emanuele45@gmail.com>