added a method to database to update stock
Merge branch 'conorsbranch'