Complete frot end shipping cost calculation, improve database store struction