added logic so that the Read function will now as for a value from the sql database if it is not found, and write it to cache