Add SQL to implement Michael's diagram
Merge branch 'master' of https://github.com/tplagge/benefice