Improves redis check to add database