change cache to use sqlite db
remove cache life variable
add rescan feature. manual control of the galleries cache