ignore lookup failure from the DB

Fix #1 with test case.

When failed to lookup from the DB, just emit and output log with warning level.