Working connection between postgres data & google API front-end