Only extend database when it is actually resolved.

This had the potential to cause complications in combination with other packages.

Resolving objects from the container should always be done in `boot()` or in some type of callback (such as the `resolving()` method), so that other packages have the chance to either use `Container::extend()` or `Container::resolving()` on these objects.