Added function for collecting node info and views count in db.
Reformatted .install to Drupal coding standards