Fixed error in SQL causing the return of only 1 point. Changed headers to allow external access.