Made db linking to other app possible

code by @thoom https://github.com/Kloadut/dokku-md-plugin/pull/18