Creating nodes directly by SQL
Every time you create a node in SQL, God kills a kitten. There are multiple hooks that fire on node creation, that make sure that a new node is processed corectly. The correct way to create a node is with a node_save() function. It will fire the correct hooks, and register the node where it should. Please refer https://drupal.org/node/1388922