Store cache in persistent cache in the users home directory.

/tmp/ has a habit of being clobbered.
Build the database
Exclude dev dependancies from being composed.