Added protected attributes gem to Gemfile and database.rb in active_record example for Rails 4.

Added protected attributes gem to Gemfile and database.rb in active_record example for Rails 4.