added hibernate support, so both jdbc and hibernate working at the same time