Add connection to postgresql database.