Calculate sum of duration and sum of salary.
Changes project structure and updates build dependencies.
Performs calculations in database views.

The Haskell layer is modified to use HDBC instead of the persistent
library.