Creating Database aware applications in Ruby on Rails