Add appname parameter.

Add appname parameter to the Postgres database configu parameter, that allow to identify the connection to the database.