added name field and saved to db