I can able to fetch data from postgresql DB using pycharm DB Browser Console.
But when I am writing the code I am failing to do establish the connection. Below is the cod