ssa_db_helper.c: fix order of reading data tables

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>