Added in logging to investigate email issues
Added pg back in
Updated gemfile
Fixed syntax error in logging
Added more logging