use the db a bit more instead of ruby
use the db a bit more instead of ruby

Change-Id: Ib0d972def8f1beec21effb2d7972ca455dd4dc21
Reviewed-on: https://gerrit.instructure.com/188508
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>
QA-Review: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>
Product-Review: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>

sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,djbender/canvas-lms