Added graceful closing of jdbc objects
Fixed compilation errors caused by incorrect usage of generics
Added sample config file