Code review markups - move database-related logic from the Cache to IMPI/IMPU tables, and HTTP-specific logic nto the handlers