NULL ID is not able to insert sql