Minor update: functions to create IDB