fixed several mistakes

default values
nullable values
unqiue values