Fixes attribute visibility for sql.