setting autocommit false to resolve SQLException