Store log files in DB rather than giant walls of text

This idea is not set in stone and is only implemented here
for the purpose of experimentation.