public bool Connect() { if (!this.isconnected) { try { db.Close(); } catch (Exception) { } try { db = Db4oFactory.OpenClient(host, port, dbuser, dbpass); } catch (Exception) { return false; } this.isconnected = true; } return true; }