Added checks of database type in lookup method
Merge pull request #22 from maxmind/greg/metadata-and-type-check

Added checks of database type in lookup method