storing dbCookies into localstorage