db is in namespace ::sg