master: added saving of stocks to database.