This gist contains a Python script that uses Frida to hook onto a TimeDoctor process and passively monitor all its SQL queries. This enables the process to export logs about the SQL statements written, which incidentally reveals a lot of information about the computer's user's activity.
This script can be used as a data source to recreate the reports sent by TimeDoctor about the user, especially in so-called "silent" installations where TimeDoctor has no UI and thus users have no way of knowing the data that is being reported about them.
This gist is the main companion to this article.