Add session objects for get_all* db api calls

This commit fixes an oversight in the get_all* db api calls where a
required session object wasn't being passed into the model query.

Change-Id: I58adc662b2b9198f9c936479fac47eab5e519159
Merge "Add session objects for get_all* db api calls"