Fix: Update database reference correctly

We were 'losing' our database reference every
12 hours when the ensure-auth timer went off,
as we weren't always telling the user of our lib
that the database ref had been changed.