The command history is contained in a two level representation, where the commands issued within a user session are kept as distinct versions of a session object. Database commands are further ordered temporally by linking together the concerned versions. The temporal ordering between database commands will typically relate commands in different user sessions, thus providing a connection between different user session.