Added logging for a DB hammering scenario

When a flag gets queried by the application that doesn't exist in the DB, nothing gets cached. This means that on a high-traffic website, that flag will pound the database with many requests. This scenario should be logged to reduce DB queries.