Flexible sharding access for Ruby on Rails with ActiveRecord