if json is not None and json.dump is not None and db != {}:
json.dump(db, open(jsonfile, "w"))#, indent=4, separators=(',', ': '))
#functions
if json is not None and json.dump is not None and db != {}:
json.dump(db, open(jsonfile, "w"))#, indent=4, separators=(',', ': '))
#functions