correct some schema constraint mistakes
add part insertion