Postgrel and redis tweaks