Add database level constraint