lookup rubygems version from database

This solves the problem of the rubygems version never getting updated. Discussed in #656 and #629.