public virtual void connectDB(string paramString1, string paramString2, string paramString3, string paramString4, string paramString5)
        {
            this.configXML = this.GetType().getResource("bimEngineDB.xml");
            closeSession();
            this.configuration = (new Configuration()).configure(this.configXML);
            this.configuration.setProperty("hibernate.connection.username", paramString4);
            this.configuration.setProperty("hibernate.connection.password", paramString5);
            this.configuration.setProperty("hibernate.connection.url", getDatabaseURL(paramString1, paramString2, paramString3));
            this.configuration.setProperty("hibernate.search.default.jdbc_url", getDatabaseURL(paramString1, paramString2, paramString3));
            this.configuration.setProperty("hibernate.search.default.jdbc_username", paramString4);
            this.configuration.setProperty("hibernate.search.default.jdbc_password", paramString5);
            this.configuration.setProperty("hibernate.connection.isolation", 8.ToString());
            this.configuration.setProperty("hibernate.dialect", "Desktop.common.nomitech.common.db.dialect.SQLServerDialect");
            this.sessionFactory = this.configuration.buildSessionFactory();
            SchemaUpdate schemaUpdate = new SchemaUpdate(this.configuration);

            schemaUpdate.execute(true, true);
            if (schemaUpdate.Exceptions.size() > 0)
            {
                MessageBox.Show(null, getDatabaseFailureUpdateFrame(schemaUpdate.Exceptions), "Error while updating the database", MessageBoxIcon.None);
            }
        }