Setting up gerrit with postgresql.