using mongodb + refactofing portfoliopost