fix condition on creation readonly db stanza

My ruby isn't great.  I noticed in a dev environment (where a readonly
db isn't present) that I was creating the readonly stanza, but it was
empty.  This fixes that.