Added a logger app and worker thread. Moved away from jOOQ for now because it doesn't do MySQL REPLACE.