Sessions and dbmanage improvements