listener.py: Changed creation of the db file to mkstemp()
listener.py: A bit of lint