added saving of some values in db.