Replace the formal database, update the MainWindows.cs