simple jdbc tempalte, named parameters, handling exceptions