Add simple script for generating logfiles from logs in MySQL