Can You log into the postgres from the command line?
Usually the db problems are described in the error log more verbosely. Try to look for the messages that refer to the nspostgres db driver. What they say?
By the way would be easier to say something if You post Your config.