add pg and rails