Restructures Plants db, updates tests and views.