Roughly Implement prepare interface, some changes to chainingLSN