Add support for negtive id

1. Rename id of event from id to e_id
2. Add negtive id support for retreving the lates event