db: remove dead code