IT WORKS! The server is making the ajax call and storing the result in postgres.