Defining Database ParametersUnderstanding the Database Abstraction LayerConnecting to the DatabasePerforming Simple QueriesRetrieving Query ResultsThe Schema APIInserts and Updates with drupal_write_record()Exposing Queries to Other Modules with hook_db_rewrite_sql()Connecting to Multiple Databases Within DrupalUsing a Temporary TableWriting Your Own Database DriverSummary