sophia database ruby extension