db and redis connections fix