Added _getAuth and _saveAuth to recover/save data from database