finalized writing Settings to locDB