update stores db functions