Correct URL for querying MySQL