Started work on profiling when prisoners get jailed #12.

This only works for the sql right now, next commit will handle flatfile.