batch to generate database from uportal and ExternalStats servlet logs