created apartment constructor and corresponding mongo database