added uniqueness contraints as db indices