overload the __setattr__ method for ActiveRecord