Use Atlassian Connect. Test the connection to the Postgres DB.