add mongo db
add instance and class method