use DB instead of memory to store inforamtion