[db] adapt cached resolver
[db] remove dependency on lualibs for compression