If you have the content as a memory stream, then it's simple:
using (FileStream fs = new FileStream(@"D:\Temp\MySqLiteDB.sqlite", FileMode.Create, System.IO.FileAccess.Write))
{
memoryStream.WriteTo(fs);
}
But...the chances are you actually get it from your DB as an array of bytes - and that's even easier:
File.WriteAllBytes(@"D:\Temp\MySqLiteDB.sqlite", arrayOfBytes);
And are you sure that it's a good idea to store Databases inside other Databases?