I\'m trying to export the variable collection through the function getDb() to another file, however, it says it\'s undefined. I\'ve been racking my brain to understand what