Updating connection and connection manager.

The journey of switching database connections was not as smooth as i
would have liked. So I added a new method in connection manager that
returns the entity manager created by the connection class. this lets us
switch connections with one command.