sort our visit and sesion ids
save and fetch from ejdb