Added most functionality

Hare Krishna,

Added inserts to the file. But did not do checking if the idshinfo
already exist. Need to do that.