```psycopg2.OperationalError: FATAL:  Peer authentication failed for user "oqplatform"```

It seems that it doesn't use the provided user and password but it uses the peer authentication.