public ulong GetLastTrackId()
        {
            ulong lastTrackId = 0;

            using (var cursor = databasesHolder.TracksDatabase.OpenCursor(tx))
            {
                DirectBuffer key   = default;
                DirectBuffer value = default;
                if (cursor.TryGet(ref key, ref value, CursorGetOption.Last))
                {
                    lastTrackId = key.ReadUInt64(0);
                }
            }
            return(lastTrackId);
        }