added title and button values to db, then passed to functions