Clicking tick now updates database