Added getter for commhistory database data dir

Now it's hardcoded in commhistoryd which isn't quite right, it should be defined right next to database path etc. The "message part cleaner" component will need to know this directory as well and it won't necessarily be part of commhistoryd.