bug-34-preload-database-function

@john-hu I have finished bug-34, Please help me review this one. Thank you~
We should use `common-io` to do Stream copy, like http://commons.apache.org/proper/commons-io/.