Database Concurrency

[CS186] Implement multigranularity locking and strict 2PL through three layers of abstractions.