store new id's to db