Added check to redis database