SQL statements to postgres are successfully linked through