Extract the models from the currently loaded model's connection

This will fix possible problems with multiple connections.