When I have had this issue in the past there are often a few things I can do to get it running, most of them seem simple, but I'm mighty forgetful --
sometimes I haven't actually created the DB after switching to postgres
bundle exec rake db:create
and then get all of my tables in there --
bundle exec rake db:migrate
other times I need to double check and make sure the PG gem is installed
gem install pg