check constraint and better form
dbdist