Started hanges towards goal

Missing parts that updates the database and sets the checkbox to checked
if the current example is public. Check returned funciton?