private void InitializeDatabase(IDatabaseWrapper dbWrapper) { string subjectName = WindowsIdentity.GetCurrent().Name; string port = HostAddress.Split(':')[2].Split('/')[0]; string subjName = WindowsIdentity.GetCurrent().Name.Replace('\\', '_').Replace('-', '_'); ServiceName = subjName + port; sqliteWrapper = dbWrapper; sqliteWrapper.CreateDatabase("Connections" + port); sqliteWrapper.ConnectToDatabase(); sqliteWrapper.CreateTable(ServiceName); }