Database Performance at Scale for RoR Applications