This may be me being very thick, but what is
WHERE StdId ='{0}'
supposed to achieve?
I know of no SQL syntax which includes this, where did you find it?
If you are going to save data and read it back immediately, you might want to consider using a Guid rather than an autonumber field - that way you are in control of the id and do not have to query the db to find out what value has been assigned.