bugfixes, in-memory cookie db