adding logging to script

All queries will now log to disk with the following details.

Sender, city, country, lat, lon
OR
Sender, country, lat, lon