Add new entries in batch

changed from creating new tx per insertion to one single tx for all
insertions
Get entries into id-read

Fix the problem with new entries not appear in the id-read index
Working on unread change

Working on the change. Made changes but have not fully tested.