forgot to update the error message of add record
make the empty insert statement work in pk + not null situations