Linking an app and db with different names doesn't work

When using the `mariadb:link <app> <db>` command, the command tries to use the app name to link to instead of the db. This really only works when the app and db share the same name. If the app name doesn't have a matching db, then an error is thrown.

This pull request fixes that.