Lazily connect mysql node

If there is a mysqldatabase config node, but no actual users of it,
we don't need to connect to the database.