Moved database file name generation to MemoryFileDatabase.