Multiple fixes

* Proper document deletion & synchronization
* Delete database when deleting configuration
* Harmonize paths
Adding this should have not effect. Why do you do that?