added db constraint