If you want to play with nodes, taxomony and comments, there is a process and set of functions that you should use to do that.
If you just want to drop some adhoc data into a table, then you can use the db_insert() function.
Here is an example.
If you get it wrong, you will get a PDO Error - which will stop your site. So, you can get around this with
If you want to insert new data, but if it exists, then update what is there, use the db_merge() function.
You can also use the drupal_write_record() function in a similar fashion.
Use this link to get DropBox http://db.tt/iQHWaaF