fix bugs in jdbc transaction; created interfaces in jdbc