Updated constraints in database scripts.