Added checks of database type in lookup method