added validations to put()

When Model.put() is called, it checks the unique_fields array and queries to make sure the field value is unique