Added support for array returns from DB.Rest
Pass logged in user into DB.Rest