updated the database by inserting the hero information.