added cookie API to database driver
create asset/session.xml in the xquery on-demand, to prepare for real collections