Closed MySQL Connection; Fixed PHP Notice.

Closed the mysql connection.
Fixed a php notice error where the speed location is left blank in the
API,; It is set to an empty string instead of null.
Closed MySQL Connection; Fixed PHP Notice - Debug

Closed the mysql connection.
Fixed a php notice error where the speed location is left blank in the
API,; It is set to an empty string instead of null.