lookup_db.py: Return result in a machine processable structure

This is in preparation for splitting this into a client/server model -
the server can look up CRCs in the database and serialise it to JSON to
return to the client.
lookup_db.py: Go back to pretty printing output

But now we have a nice separation for a client/server model :)