change drupal db to object-based