add some redis and mysql privisioning logic