Error in connecting to staging database after I connected to local database and created collections

System Information
  • Strapi Version: 3.6.0
  • Operating System: mac os
  • Database: postgres
  • Node Version: 12.16.0
  • NPM Version: 6.13.4
  • Yarn Version:

PFA screenshot of the error. Staging DB credentials are fine. It worked earlier and it works fine if I connect to local db.