ssa_db.h: Enhance DB query operations to be in sync with latest ssa_db struct

As designed by Ilya, more DB query operations are needed to walk
through the latest ssa_db struct.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>