shell and postgresql