fixes to db library
correct login flow for getting initial set of favorites