Databases in Ruby on Rails: Advanced Concepts