check db.constraint