finished mongo port, created Base model