shapes the DB-related processing