Fixing the begin() method by explicitly beginning tx after retrieval.