fixed keyids in sql/ip-pool-db-expired scenario