Created Insert Timer

Fixed duplicate key error at inserting into DB