Split out database/models into relevant plugins