Added logic for creating and saving a character to the db.