Added log4j.
Added Hadoop dependencies.
Parameterized input parameters.
Refactored database classes.
Changed main class.