get SQL refs from session (bp sql-query-get)

Change-Id: I2200e33868d50bb69089f3108a5a4c061afccd6e