Compact session db every hundred pages