added two methods to prepare config item values before adding to db and before outputting