added functionality for retrieving list of heroes and saving to database