Refactor attributes for sfdb.

Refactor attributes for sfdb.