stock database implemented