update db writeability