refactor pipelines in order to add redisdb