From the code you have provided as far as I can see you don't populate the dataset anywhere. You do set the SQL statement and the connection and so on but I can't find a call to
Fill[
^] method anywhere. If this is true there's no data fetched from the database thus leaving your data row non existent.