Add dependency on "database" cookbook
Fix creation of shared directories and config files
Fix thin recipe, drop dependency on thin cookbook