polish up basic_search
fix some defect in upload not trimming extra white space
backup database before and after pruning extra whitspace in document
title and  author's name