fixed sqlite null column contraint error. #197