Added support for multiple connections by name. Also added support for testing database.