Reduce database layer memory usage
Simplify the code in Analyze.hs a bit to make reasoning about performance easier
Add a dependency on direct-sqlite
Various performance tweaks in Analyze.Source