add comments, move restorepart after db creation