added Drupal http methods and database updates