Reuse storeData() utility function in createData too