add mongodb to replace firebase