Fixing log file name
Fixing bug in json request for map data

Changing from literal query to Q objects, and also tidying up the file.