I assume that the pear DB_common::createSequence() and DB_common::nextId() are whats being used to create event_id but to be honest I'm too much of a php newbie to find out how it is done in the kronolith code. Would I be able to use these functions directly and if so what is the sequence name?