Clean up database

Adapters belongs to views, not databases. Moved the adapter creation to respective fragment instead.