Adding getVisibility to sqlite