added mongdb class and corrected project model