removed a connection leak.
initialised velocities logging so it would use log4j.