add the old version of our hook_schema generator. needs to be tweaked to work with Drupal 7.