add mongo.lua logout function