Hacky quick replacement for drupal db_* calls