db, simple_db: Fix a stupid bug when compressed db is not enabled