Add promise to modulestore connect
Update example to use modulestore promise