Removing all stuff except the core model, adding mongodb adapter.