DB: constraints