Fix for older versions of SQLite

Use the shim method call to get table information instead of the direct DBI
call.  Older versions if SQLite return NULL for schema.  Newer versions can
return 'main'.

Change-Id: I5772ad0fd0e59468d3dd18990a394eb702bba412
Merge pull request #38 from amb43790/perl5.8-fix