Helpers for the Branched Database Pattern in Ruby