added back err to redis flushdb