added blocking block around jdbc calls; and optimized imports