master: created json output (stock history) from the database.