@lucacopa 
I think this can be safely replaced by a standard time function for getting formatted time, like this one:
dateTime = time.strftime("%Y-%m-%dT%H:%M:%S")
So we don't use sqlite3 anymore